<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>DSF2FLAC: DopPacker Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">DSF2FLAC
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">DopPacker Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="DopPacker" -->
<p>A class which takes DSD samples from a <a class="el" href="classDsdSampleReader.html" title="Abstract class defining anything which reads dsd samples from something.">DsdSampleReader</a> and packs them into DOP encoded PCM.  
 <a href="classDopPacker.html#details">More...</a></p>

<p><code>#include &lt;dop_packer.h&gt;</code></p>

<p><a href="classDopPacker-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDopPacker.html#a4df822e610b9b0d36f2a0a2334cc80b7">DopPacker</a> (<a class="el" href="classDsdSampleReader.html">DsdSampleReader</a> *<a class="el" href="classDopPacker.html#a823ef9f0da46e84eed233a2e00f38e3b">reader</a>)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Class constructor.  <a href="#a4df822e610b9b0d36f2a0a2334cc80b7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDopPacker.html#ab7eb362b4eee8564c464224e38af0d7f">~DopPacker</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Class destructor.  <a href="#ab7eb362b4eee8564c464224e38af0d7f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDopPacker.html#a5afb6411fdfeefc7f3303883c6501cca">pack_buffer</a> (dsf2flac_int32 *buffer, dsf2flac_uint32 bufferLen)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Read DOP PCM samples from the reader.  <a href="#a5afb6411fdfeefc7f3303883c6501cca"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classDsdSampleReader.html">DsdSampleReader</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDopPacker.html#a823ef9f0da46e84eed233a2e00f38e3b">reader</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A pointer to the <a class="el" href="classDsdSampleReader.html" title="Abstract class defining anything which reads dsd samples from something.">DsdSampleReader</a>.  <a href="#a823ef9f0da46e84eed233a2e00f38e3b"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A class which takes DSD samples from a <a class="el" href="classDsdSampleReader.html" title="Abstract class defining anything which reads dsd samples from something.">DsdSampleReader</a> and packs them into DOP encoded PCM. </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a4df822e610b9b0d36f2a0a2334cc80b7"></a><!-- doxytag: member="DopPacker::DopPacker" ref="a4df822e610b9b0d36f2a0a2334cc80b7" args="(DsdSampleReader *reader)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classDopPacker.html#a4df822e610b9b0d36f2a0a2334cc80b7">DopPacker::DopPacker</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classDsdSampleReader.html">DsdSampleReader</a> *&#160;</td>
          <td class="paramname"><em>reader</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Class constructor. </p>
<p>reader can be any type of DSD sample reader. </p>

</div>
</div>
<a class="anchor" id="ab7eb362b4eee8564c464224e38af0d7f"></a><!-- doxytag: member="DopPacker::~DopPacker" ref="ab7eb362b4eee8564c464224e38af0d7f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classDopPacker.html#ab7eb362b4eee8564c464224e38af0d7f">DopPacker::~DopPacker</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Class destructor. </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a5afb6411fdfeefc7f3303883c6501cca"></a><!-- doxytag: member="DopPacker::pack_buffer" ref="a5afb6411fdfeefc7f3303883c6501cca" args="(dsf2flac_int32 *buffer, dsf2flac_uint32 bufferLen)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classDopPacker.html#a5afb6411fdfeefc7f3303883c6501cca">DopPacker::pack_buffer</a> </td>
          <td>(</td>
          <td class="paramtype">dsf2flac_int32 *&#160;</td>
          <td class="paramname"><em>buffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">dsf2flac_uint32&#160;</td>
          <td class="paramname"><em>bufferLen</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Read DOP PCM samples from the reader. </p>
<p>The input "buffer" will be filled with DoP encoded 24bit PCM samples. "buffer" must be at least "bufferLen" long. "bufferLen" must be a multiple of the number of channels in the reader, a horrible error will be thrown if it is not. The pcm samples are packed in increasing time and interleaved by channel i.e. [left0 right0 left1 right1 ... leftN rightN] </p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a823ef9f0da46e84eed233a2e00f38e3b"></a><!-- doxytag: member="DopPacker::reader" ref="a823ef9f0da46e84eed233a2e00f38e3b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classDsdSampleReader.html">DsdSampleReader</a>* <a class="el" href="classDopPacker.html#a823ef9f0da46e84eed233a2e00f38e3b">DopPacker::reader</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A pointer to the <a class="el" href="classDsdSampleReader.html" title="Abstract class defining anything which reads dsd samples from something.">DsdSampleReader</a>. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>dop_packer.h</li>
<li>dop_packer.cpp</li>
</ul>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Sun Oct 13 2013 22:00:19 for DSF2FLAC by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
